#ifndef H_OBSERVER_H
#define H_OBSERVER_H
#include <iostream>
namespace ObserverMode
{
    class Observer
    {
    public:
        virtual void response() = 0;
    };

    class ConcreteObserver1:public Observer
    {
    public:
        virtual void response()
        {
            std::cout<<"具体观察者1作出反应！"<<std::endl;
        }
    };

    class ConcreteObserver2:public Observer
    {
    public:
        virtual void response()
        {
            std::cout<<"具体观察者2作出反应！"<<std::endl;
        }
    };    
}
#endif